//
//  UIViewController+NavBar.h
//  SP2P
//
//  Created by mac on 16/1/13.
//  Copyright © 2016年 EIMS. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (NavBar)

/**
 *  快速定义导航栏
 *
 *  @param titleName     导航栏标题
 *  @param leftItemName  左边栏标题，如果以*image结尾表示是图片
 *  @param rightItemName 右边栏标题，如果以*image结尾表示是图片
 */
- (void)initNavBarTitle:(NSString *)titleName
        andLeftItemName:(NSString *)leftItemName
       andRightItemName:(NSString *)rightItemName;

//导航栏标题+返回按钮+右侧图片按钮
- (void)initNavBarTitle:(NSString *)titleName andLeftImageName:(NSString *)leftImageName andRightImageName:(NSString *)rightImageName;

//导航栏标题+返回按钮+右侧文字按钮
- (void)initNavBarTitle:(NSString *)titleName andLeftImageName:(NSString *)leftImageName andRightItem:(NSString *)rightItem;

//导航栏标题+返回按钮+右侧文字按钮+状态栏颜色+导航栏颜色
- (void)initNavBarTitle:(NSString *)titleName andLeftImageName:(NSString *)leftImageName andRightButton:(id)rightButton andStatusBar:(UIStatusBarStyle)statusBar andBarTinColor:(UIColor *)barTinColor andTinColor:(UIColor *)tinColor;

//返回按钮图片+颜色
- (void)initLeftBarButtonItemWithImageName:(NSString *)imgName andColor:(UIColor *)color;

//右侧按钮文字或图片+颜色
- (void)initRightBarButtonItemWithObj:(id)obj andColor:(UIColor *)color;

//设置导航栏背景色
- (void)setNavBarBackgroundColor:(UIColor *)color andStatusBar:(UIStatusBarStyle)statusBar;

//恢复导航栏设置
- (void)resetNavigationBar;

@end
